<template>
	<web-view :src="url">
	</web-view>
	<!-- 	<cover-view class="footer">
		<button id="submitBtn" @click="submitAcceptance" class="submitBtn">提交验收</button>
	</cover-view> -->
</template>

<script setup>
	import {
		ref,
		onMounted,
		defineExpose,
		watch
	} from 'vue';
	import {
		onLoad,
		onReady,
		onShow,
		onHide,
	} from '@dcloudio/uni-app'

	const url = ref(''); // 定义 url 数据

	onLoad((query) => {
		if (query.url) {
			url.value = decodeURIComponent(query.url); // 获取并设置 URL
		}
	});

	const submitAcceptance = () => {
		console.log('提交验收');
	}
</script>

<style lang="less" scoped>
	.footer {
		position: fixed;
		bottom: 0;
		left: 0;
		z-index: 999999999;
		transform: translateX(-50%);

		.submitBtn {
			height: 30px;
			line-height: 30px;
			width: 200px;
			text-align: center;
			border-radius: 8px;
			color: #ffffff;
			background-color: #FF2E2E;
			opacity: 0.6;
			margin: 10px 0;

		}
	}
</style>